import request from '@/utils/request'

export const getGoodsDetail = (goodsId) => {
  return request.get('/goods/detail', {
    params: {
      goodsId
    }
  })
}

// 获取商品评价
export const getProComments = (goodsId) => {
  return request.get('/comment/listRows', {
    params: {
      goodsId
    }
  })
}

// 获取购物车数量
export const getCartTotal = (userId) => {
  return request.get('/cartTotalCount', {
    params: {
      userId
    }
  })
}
